#ifndef WIJISETTINGS_H
#define WIJISETTINGS_H

#include <QObject>
#include <QVariant>
#include <QSettings>
#include "wijiio.h"
class WijiSettings : public QObject
{
Q_OBJECT
    static WijiSettings* _self;
    static QString appName;
    QString iniFile;
    QSettings* iniSettings;

public:
    WijiSettings(QObject *parent = 0);
    ~WijiSettings() {delete iniSettings;}

    static WijiSettings* appSetup(const char *name) {appName = name;}
    static WijiSettings* getSelf();
    //QSettings* getIniSettings() {return iniSettings;}

    QString dataDirectory;
    QString cwd;
    QString sqliteDatabaseLocation;
signals:

public slots:
    void init();
    QVariant getValue(QString key);
    bool setValue(QString key, QString value);
    QString parseResult(QString text);

};

#endif // WIJISETTINGS_H
